﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BBCP.UI.Tasks;
using BBCP.Model;

namespace BBCP.UI.Customers
{
    public class ShowList : ITask
    {
        public bool Run()
        {
            using (var context = new NorthwindEntities())
            {
                var customers = context.Customers;

                foreach (var item in customers)
                {
                    Console.WriteLine("{0} (ID: {1})", item.ContactName, item.CustomerID);
                }
                return true;
            }
        }  
    }
}
